/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.schedule.executor.model;

import com.hyts.schedule.executor.handler.Task;

/** 
 * @title TriggerBean.java  
 * @package com.hyts.schedule.quartz.model  
 * @description 触发器抽象  
 * @see TODO
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月18日 
 * @version V1.0 
 */
public abstract class TriggerBean {
	
	/**  
	 * <p>{字段的描述}</p> 
	 * @fieldName triggerName
	 * @fieldType String
	 */ 
	private String triggerName;
	
	/**  
	 * <p>{字段的描述}</p> 
	 * @fieldName triggerGroupName
	 * @fieldType String
	 */ 
	private String triggerGroupName;
	
	/**  
	 * <p>工作任务执行数据对象</p> 
	 * @fieldName jobBean
	 * @fieldType JobBean
	 */ 
	private JobBean jobBean;
	
	/**  
	 * @name triggerName's getter method
	 * @param none
	 * @return triggerName
	 */
	public String getTriggerName() {
		return triggerName;
	}

	/**  
	 * @name triggerName's setter method
	 * @param triggerName
	 * @return void
	 */
	public void setTriggerName(String triggerName) {
		this.triggerName = triggerName;
	}

	/**  
	 * @name triggerGroupName's getter method
	 * @param none
	 * @return triggerGroupName
	 */
	public String getTriggerGroupName() {
		return triggerGroupName;
	}

	/**  
	 * @name triggerGroupName's setter method
	 * @param triggerGroupName
	 * @return void
	 */
	public void setTriggerGroupName(String triggerGroupName) {
		this.triggerGroupName = triggerGroupName;
	}

	/**  
	 * @name jobBean's getter method
	 * @param none
	 * @return jobBean
	 */
	public JobBean getJobBean() {
		return jobBean;
	}

	/**  
	 * @name jobBean's setter method
	 * @param jobBean
	 * @return void
	 */
	public void setJobBean(JobBean jobBean) {
		this.jobBean = jobBean;
	}

	/**  
	 * @constructor：TriggerBean  
	 * @param triggerName
	 * @param triggerGroupName
	 * @param jobBean  
	 */ 
	
	
	public TriggerBean(String triggerName, String triggerGroupName,
			JobBean jobBean) {
		super();
		this.triggerName = triggerName;
		this.triggerGroupName = triggerGroupName;
		this.jobBean = jobBean;
	}
	
	private Task task;

	/**  
	 * @name task's setter method
	 * @param task
	 * @return void
	 */
	public void setTask(Task task) {
		this.task = task;
	}

	/**  
	 * @name task's getter method
	 * @param none
	 * @return task
	 */
	public Task getTask() {
		return task;
	}
	
}
